//
//  HWMyWalletModel.m
//  嗨文
//
//  Created by 响当当 on 2019/3/22.
//  Copyright © 2019年 dongzheng. All rights reserved.
//

#import "HWMyWalletModel.h"

@implementation HWMyWalletModel
- (id)initWithDic:(NSDictionary *)dic
{
    if (self = [super init])
    {
        self.yestodayGoldCoin = [[NSString stringWithFormat:@"%@",dic[@"yestodayGoldCoin"]] isValidString] ? [NSString stringWithFormat:@"%@",dic[@"yestodayGoldCoin"]] :@"";
        self.cash = [[NSString stringWithFormat:@"%@",dic[@"cash"]] isValidString] ? [NSString stringWithFormat:@"%@",dic[@"cash"]] :@"";
        self.profit = [[NSString stringWithFormat:@"%@",dic[@"profit"]] isValidString] ? [NSString stringWithFormat:@"%@",dic[@"profit"]] :@"";
        self.ratio = [[NSString stringWithFormat:@"%@",dic[@"ratio"]] isValidString] ? [NSString stringWithFormat:@"%@",dic[@"ratio"]] :@"";
        self.goldCoin = [[NSString stringWithFormat:@"%@",dic[@"goldCoin"]] isValidString] ? [NSString stringWithFormat:@"%@",dic[@"goldCoin"]] :@"";
        
    }
    return self;
}
@end
